
<html>
<head>
<link rel="stylesheet" href="css/xsd-forms-style.css" type="text/css"/>
<link rel="stylesheet" href="css/xsd-forms-style-override.css" type="text/css"/>
<link type="text/css" href="css/smoothness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />	
<link type="text/css" href="css/timepicker.css" rel="stylesheet" />	
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript">
$(function() {
  $('input').filter('.datepickerclass').datepicker();
  $('input').filter('.datepickerclass').datepicker( "option", "dateFormat","dd/mm/yy");
  $('input').filter('.datetimepickerclass').datetimepicker();
  $('input').filter('.timepickerclass').timepicker({});
  $('#pre-submit').click( function () {
    var s = "";
    $('div[enabled="true"]').each( function(index) { 
      s = s  + '<p>' + this.innerText + '</p>';
    });
    $('#submit-comments').html(s);
  });
  $('#b-item-1').width('4em');

  // apartment-flat-unit-number
  var validate1 = function () {
    var ok = true;
    var v = $("#b-item-1");

    return ok;
  }
        
  $("#b-item-1").change( function() {
    var ok = validate1();
    var error= $("#b-item-error-1");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-2').width('5em');

  // street-number
  var validate2 = function () {
    var ok = true;
    var v = $("#b-item-2");

    return ok;
  }
        
  $("#b-item-2").change( function() {
    var ok = validate2();
    var error= $("#b-item-error-2");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-3').width('20em');

  // street-name
  var validate3 = function () {
    var ok = true;
    var v = $("#b-item-3");

    return ok;
  }
        
  $("#b-item-3").change( function() {
    var ok = validate3();
    var error= $("#b-item-error-3");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-4').width('20em');

  // suburb-locality
  var validate4 = function () {
    var ok = true;
    var v = $("#b-item-4");

    //length test
    if (v.val().length <1)
      ok = false;

    return ok;
  }
        
  $("#b-item-4").change( function() {
    var ok = validate4();
    var error= $("#b-item-error-4");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // state
  var validate5 = function () {
    var ok = true;
    var v = $("#b-item-5");

    return ok;
  }
        
  $("#b-item-5").change( function() {
    var ok = validate5();
    var error= $("#b-item-error-5");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-6').width('4em');

  // postcode
  var validate6 = function () {
    var ok = true;
    var v = $("#b-item-6");

    // mandatory test
    if ((v.val() == null) || (v.val().length==0))
      ok=false;

    // pattern test
    var regex = /^[0-9]{4}$/ ;
    if (!(regex.test(v.val()))) 
      ok = false;

    return ok;
  }
        
  $("#b-item-6").change( function() {
    var ok = validate6();
    var error= $("#b-item-error-6");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-7').width('25em');

  // property-building-name
  var validate7 = function () {
    var ok = true;
    var v = $("#b-item-7");

    return ok;
  }
        
  $("#b-item-7").change( function() {
    var ok = validate7();
    var error= $("#b-item-error-7");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-8').css('width','20em');

  // first-name
  var validate8 = function () {
    var ok = true;
    var v = $("#b-item-8");

    return ok;
  }
        
  $("#b-item-8").change( function() {
    var ok = validate8();
    var error= $("#b-item-error-8");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-9').width('20em');

  // last-name
  var validate9 = function () {
    var ok = true;
    var v = $("#b-item-9");

    return ok;
  }
        
  $("#b-item-9").change( function() {
    var ok = validate9();
    var error= $("#b-item-error-9");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // gender
  var validate10 = function () {
    var ok = true;
    var v = $("#b-item-10");

    return ok;
  }
        
  $("#b-item-10").change( function() {
    var ok = validate10();
    var error= $("#b-item-error-10");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  var choice10=$(":input[@name='b-choice-item-10']");

  $("#b-choice-content-10-1").hide();

  $("#b-choice-content-10-2").hide();

  choice10.change(function() {
    var checked = $(':input[name=b-choice-item-10]:checked').attr("id");

    if (checked == "b-choice-item-10-1") {
      $("#b-choice-content-10-1").show();
      $("#b-choice-content-10-1").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-10-1").hide();
      $("#b-choice-content-10-1").find('.item-path').attr('enabled','false');
    }

    if (checked == "b-choice-item-10-2") {
      $("#b-choice-content-10-2").show();
      $("#b-choice-content-10-2").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-10-2").hide();
      $("#b-choice-content-10-2").find('.item-path').attr('enabled','false');
    }

  });

  // date-of-birth
  var validate11 = function () {
    var ok = true;
    var v = $("#b-item-11");

    return ok;
  }
        
  $("#b-item-11").change( function() {
    var ok = validate11();
    var error= $("#b-item-error-11");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // age-last-birthday
  var validate12 = function () {
    var ok = true;
    var v = $("#b-item-12");
    	  
    // base pattern test
    var regex = /^\d+$/ ;
    if (!(regex.test(v.val()))) 
      ok = false;

    //facet test
    if ((+(v.val())) < 0)
      ok = false;
    //facet test
    if ((+(v.val())) > 150)
      ok = false;

    return ok;
  }
        
  $("#b-item-12").change( function() {
    var ok = validate12();
    var error= $("#b-item-error-12");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // marital-status
  var validate13 = function () {
    var ok = true;
    var v = $("#b-item-13");

    return ok;
  }
        
  $("#b-item-13").change( function() {
    var ok = validate13();
    var error= $("#b-item-error-13");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // indigenous-origin
  var validate14 = function () {
    var ok = true;
    var v = $("#b-item-14");

    return ok;
  }
        
  $("#b-item-14").change( function() {
    var ok = validate14();
    var error= $("#b-item-error-14");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  var choice14=$(":input[@name='b-choice-item-14']");

  $("#b-choice-content-14-1").hide();

  $("#b-choice-content-14-2").hide();

  $("#b-choice-content-14-3").hide();

  choice14.change(function() {
    var checked = $(':input[name=b-choice-item-14]:checked').attr("id");

    if (checked == "b-choice-item-14-1") {
      $("#b-choice-content-14-1").show();
      $("#b-choice-content-14-1").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-14-1").hide();
      $("#b-choice-content-14-1").find('.item-path').attr('enabled','false');
    }

    if (checked == "b-choice-item-14-2") {
      $("#b-choice-content-14-2").show();
      $("#b-choice-content-14-2").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-14-2").hide();
      $("#b-choice-content-14-2").find('.item-path').attr('enabled','false');
    }

    if (checked == "b-choice-item-14-3") {
      $("#b-choice-content-14-3").show();
      $("#b-choice-content-14-3").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-14-3").hide();
      $("#b-choice-content-14-3").find('.item-path').attr('enabled','false');
    }

  });

  // residential-same-as-dwelling-address
  var validate15 = function () {
    var ok = true;
    var v = $("#b-item-15");

    return ok;
  }
        
  $("#b-item-15").change( function() {
    var ok = validate15();
    var error= $("#b-item-error-15");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-16').width('4em');

  // apartment-flat-unit-number
  var validate16 = function () {
    var ok = true;
    var v = $("#b-item-16");

    return ok;
  }
        
  $("#b-item-16").change( function() {
    var ok = validate16();
    var error= $("#b-item-error-16");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-17').width('5em');

  // street-number
  var validate17 = function () {
    var ok = true;
    var v = $("#b-item-17");

    return ok;
  }
        
  $("#b-item-17").change( function() {
    var ok = validate17();
    var error= $("#b-item-error-17");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-18').width('20em');

  // street-name
  var validate18 = function () {
    var ok = true;
    var v = $("#b-item-18");

    return ok;
  }
        
  $("#b-item-18").change( function() {
    var ok = validate18();
    var error= $("#b-item-error-18");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-19').width('20em');

  // suburb-locality
  var validate19 = function () {
    var ok = true;
    var v = $("#b-item-19");

    //length test
    if (v.val().length <1)
      ok = false;

    return ok;
  }
        
  $("#b-item-19").change( function() {
    var ok = validate19();
    var error= $("#b-item-error-19");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // state
  var validate20 = function () {
    var ok = true;
    var v = $("#b-item-20");

    return ok;
  }
        
  $("#b-item-20").change( function() {
    var ok = validate20();
    var error= $("#b-item-error-20");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-21').width('4em');

  // postcode
  var validate21 = function () {
    var ok = true;
    var v = $("#b-item-21");

    // mandatory test
    if ((v.val() == null) || (v.val().length==0))
      ok=false;

    // pattern test
    var regex = /^[0-9]{4}$/ ;
    if (!(regex.test(v.val()))) 
      ok = false;

    return ok;
  }
        
  $("#b-item-21").change( function() {
    var ok = validate21();
    var error= $("#b-item-error-21");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-22').width('25em');

  // property-building-name
  var validate22 = function () {
    var ok = true;
    var v = $("#b-item-22");

    return ok;
  }
        
  $("#b-item-22").change( function() {
    var ok = validate22();
    var error= $("#b-item-error-22");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // other-country
  var validate23 = function () {
    var ok = true;
    var v = $("#b-item-23");

    return ok;
  }
        
  $("#b-item-23").change( function() {
    var ok = validate23();
    var error= $("#b-item-error-23");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  var choice23=$(":input[@name='b-choice-item-23']");

  $("#b-choice-content-23-1").hide();

  $("#b-choice-content-23-2").hide();

  $("#b-choice-content-23-3").hide();

  choice23.change(function() {
    var checked = $(':input[name=b-choice-item-23]:checked').attr("id");

    if (checked == "b-choice-item-23-1") {
      $("#b-choice-content-23-1").show();
      $("#b-choice-content-23-1").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-23-1").hide();
      $("#b-choice-content-23-1").find('.item-path').attr('enabled','false');
    }

    if (checked == "b-choice-item-23-2") {
      $("#b-choice-content-23-2").show();
      $("#b-choice-content-23-2").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-23-2").hide();
      $("#b-choice-content-23-2").find('.item-path').attr('enabled','false');
    }

    if (checked == "b-choice-item-23-3") {
      $("#b-choice-content-23-3").show();
      $("#b-choice-content-23-3").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-23-3").hide();
      $("#b-choice-content-23-3").find('.item-path').attr('enabled','false');
    }

  });

  // residential-same-as-current
  var validate24 = function () {
    var ok = true;
    var v = $("#b-item-24");

    return ok;
  }
        
  $("#b-item-24").change( function() {
    var ok = validate24();
    var error= $("#b-item-error-24");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-25').width('4em');

  // apartment-flat-unit-number
  var validate25 = function () {
    var ok = true;
    var v = $("#b-item-25");

    return ok;
  }
        
  $("#b-item-25").change( function() {
    var ok = validate25();
    var error= $("#b-item-error-25");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-26').width('5em');

  // street-number
  var validate26 = function () {
    var ok = true;
    var v = $("#b-item-26");

    return ok;
  }
        
  $("#b-item-26").change( function() {
    var ok = validate26();
    var error= $("#b-item-error-26");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-27').width('20em');

  // street-name
  var validate27 = function () {
    var ok = true;
    var v = $("#b-item-27");

    return ok;
  }
        
  $("#b-item-27").change( function() {
    var ok = validate27();
    var error= $("#b-item-error-27");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-28').width('20em');

  // suburb-locality
  var validate28 = function () {
    var ok = true;
    var v = $("#b-item-28");

    //length test
    if (v.val().length <1)
      ok = false;

    return ok;
  }
        
  $("#b-item-28").change( function() {
    var ok = validate28();
    var error= $("#b-item-error-28");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // state
  var validate29 = function () {
    var ok = true;
    var v = $("#b-item-29");

    return ok;
  }
        
  $("#b-item-29").change( function() {
    var ok = validate29();
    var error= $("#b-item-error-29");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-30').width('4em');

  // postcode
  var validate30 = function () {
    var ok = true;
    var v = $("#b-item-30");

    // mandatory test
    if ((v.val() == null) || (v.val().length==0))
      ok=false;

    // pattern test
    var regex = /^[0-9]{4}$/ ;
    if (!(regex.test(v.val()))) 
      ok = false;

    return ok;
  }
        
  $("#b-item-30").change( function() {
    var ok = validate30();
    var error= $("#b-item-error-30");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-31').width('25em');

  // property-building-name
  var validate31 = function () {
    var ok = true;
    var v = $("#b-item-31");

    return ok;
  }
        
  $("#b-item-31").change( function() {
    var ok = validate31();
    var error= $("#b-item-error-31");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // other-country
  var validate32 = function () {
    var ok = true;
    var v = $("#b-item-32");

    return ok;
  }
        
  $("#b-item-32").change( function() {
    var ok = validate32();
    var error= $("#b-item-error-32");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  var choice32=$(":input[@name='b-choice-item-32']");

  $("#b-choice-content-32-1").hide();

  $("#b-choice-content-32-2").hide();

  $("#b-choice-content-32-3").hide();

  choice32.change(function() {
    var checked = $(':input[name=b-choice-item-32]:checked').attr("id");

    if (checked == "b-choice-item-32-1") {
      $("#b-choice-content-32-1").show();
      $("#b-choice-content-32-1").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-32-1").hide();
      $("#b-choice-content-32-1").find('.item-path').attr('enabled','false');
    }

    if (checked == "b-choice-item-32-2") {
      $("#b-choice-content-32-2").show();
      $("#b-choice-content-32-2").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-32-2").hide();
      $("#b-choice-content-32-2").find('.item-path').attr('enabled','false');
    }

    if (checked == "b-choice-item-32-3") {
      $("#b-choice-content-32-3").show();
      $("#b-choice-content-32-3").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-32-3").hide();
      $("#b-choice-content-32-3").find('.item-path').attr('enabled','false');
    }

  });

  // residential-same-as-current
  var validate33 = function () {
    var ok = true;
    var v = $("#b-item-33");

    return ok;
  }
        
  $("#b-item-33").change( function() {
    var ok = validate33();
    var error= $("#b-item-error-33");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-34').width('4em');

  // apartment-flat-unit-number
  var validate34 = function () {
    var ok = true;
    var v = $("#b-item-34");

    return ok;
  }
        
  $("#b-item-34").change( function() {
    var ok = validate34();
    var error= $("#b-item-error-34");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-35').width('5em');

  // street-number
  var validate35 = function () {
    var ok = true;
    var v = $("#b-item-35");

    return ok;
  }
        
  $("#b-item-35").change( function() {
    var ok = validate35();
    var error= $("#b-item-error-35");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-36').width('20em');

  // street-name
  var validate36 = function () {
    var ok = true;
    var v = $("#b-item-36");

    return ok;
  }
        
  $("#b-item-36").change( function() {
    var ok = validate36();
    var error= $("#b-item-error-36");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-37').width('20em');

  // suburb-locality
  var validate37 = function () {
    var ok = true;
    var v = $("#b-item-37");

    //length test
    if (v.val().length <1)
      ok = false;

    return ok;
  }
        
  $("#b-item-37").change( function() {
    var ok = validate37();
    var error= $("#b-item-error-37");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // state
  var validate38 = function () {
    var ok = true;
    var v = $("#b-item-38");

    return ok;
  }
        
  $("#b-item-38").change( function() {
    var ok = validate38();
    var error= $("#b-item-error-38");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-39').width('4em');

  // postcode
  var validate39 = function () {
    var ok = true;
    var v = $("#b-item-39");

    // mandatory test
    if ((v.val() == null) || (v.val().length==0))
      ok=false;

    // pattern test
    var regex = /^[0-9]{4}$/ ;
    if (!(regex.test(v.val()))) 
      ok = false;

    return ok;
  }
        
  $("#b-item-39").change( function() {
    var ok = validate39();
    var error= $("#b-item-error-39");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  
  $('#b-item-40').width('25em');

  // property-building-name
  var validate40 = function () {
    var ok = true;
    var v = $("#b-item-40");

    return ok;
  }
        
  $("#b-item-40").change( function() {
    var ok = validate40();
    var error= $("#b-item-error-40");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // other-country
  var validate41 = function () {
    var ok = true;
    var v = $("#b-item-41");

    return ok;
  }
        
  $("#b-item-41").change( function() {
    var ok = validate41();
    var error= $("#b-item-error-41");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // citizen
  var validate42 = function () {
    var ok = true;
    var v = $("#b-item-42");

    return ok;
  }
        
  $("#b-item-42").change( function() {
    var ok = validate42();
    var error= $("#b-item-error-42");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  var choice42=$(":input[@name='b-choice-item-42']");

  $("#b-choice-content-42-1").hide();

  $("#b-choice-content-42-2").hide();

  choice42.change(function() {
    var checked = $(':input[name=b-choice-item-42]:checked').attr("id");

    if (checked == "b-choice-item-42-1") {
      $("#b-choice-content-42-1").show();
      $("#b-choice-content-42-1").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-42-1").hide();
      $("#b-choice-content-42-1").find('.item-path').attr('enabled','false');
    }

    if (checked == "b-choice-item-42-2") {
      $("#b-choice-content-42-2").show();
      $("#b-choice-content-42-2").find('.item-path').attr('enabled','true');
    }
    else {
      $("#b-choice-content-42-2").hide();
      $("#b-choice-content-42-2").find('.item-path').attr('enabled','false');
    }

  });

  // australia
  var validate43 = function () {
    var ok = true;
    var v = $("#b-item-43");

    return ok;
  }
        
  $("#b-item-43").change( function() {
    var ok = validate43();
    var error= $("#b-item-error-43");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

    $("#b-select-44").change( function() {
      var v = $("#b-select-44");
      var refersTo = $("#b-item-enclosing-45") 
      if ("Other" == v.val()) 
        refersTo.show();
      else
        refersTo.hide();
    })
  

  // country
  var validate44 = function () {
    var ok = true;
    var v = $("#b-item-44");

    return ok;
  }
        
  $("#b-item-44").change( function() {
    var ok = validate44();
    var error= $("#b-item-error-44");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // other-country
  var validate45 = function () {
    var ok = true;
    var v = $("#b-item-45");

    return ok;
  }
        
  $("#b-item-45").change( function() {
    var ok = validate45();
    var error= $("#b-item-error-45");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // year-of-arrival
  var validate46 = function () {
    var ok = true;
    var v = $("#b-item-46");
    	  
    // base pattern test
    var regex = /^\d+$/ ;
    if (!(regex.test(v.val()))) 
      ok = false;

    return ok;
  }
        
  $("#b-item-46").change( function() {
    var ok = validate46();
    var error= $("#b-item-error-46");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // father-place-of-birth
  var validate47 = function () {
    var ok = true;
    var v = $("#b-item-47");

    return ok;
  }
        
  $("#b-item-47").change( function() {
    var ok = validate47();
    var error= $("#b-item-error-47");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // mother-place-of-birth
  var validate48 = function () {
    var ok = true;
    var v = $("#b-item-48");

    return ok;
  }
        
  $("#b-item-48").change( function() {
    var ok = validate48();
    var error= $("#b-item-error-48");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

    $("#b-select-49").change( function() {
      var v = $("#b-select-49");
      var refersTo = $("#b-item-enclosing-50") 
      if ("Other" == v.val()) 
        refersTo.show();
      else
        refersTo.hide();
    })
  

  // language-at-home
  var validate49 = function () {
    var ok = true;
    var v = $("#b-item-49");

    return ok;
  }
        
  $("#b-item-49").change( function() {
    var ok = validate49();
    var error= $("#b-item-error-49");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  // language-at-home-other
  var validate50 = function () {
    var ok = true;
    var v = $("#b-item-50");

    return ok;
  }
        
  $("#b-item-50").change( function() {
    var ok = validate50();
    var error= $("#b-item-error-50");
    if (!(ok)) 
      error.show();
    else 
      error.hide();
  })
  

  $("#form").submit(function () { return false; }); // so it won't submit

    });
</script>
<script type="text/javascript" src="js/xsd-forms-override.js"></script>
</head>
<body>
<div class="form">
<form method="POST" action="form.html" name="form">

  <div class="sequence">
    <div class="sequence-label">
    </div>
    <div id="b-sequence-0" class="sequence-content">
      <div class="sequence">
        <div class="sequence-label">What is the address of this dwelling?</div>
        <div id="b-sequence-0" class="sequence-content">
          <div id="b-item-enclosing-1" class="item-enclosing">
            <div class="item-number">1</div>
            <label class="item-label">Apartment/Flat/Unit number</label>
            <div class="item-input">
              <input id="b-item-1" class=" item-input-text" name="item-input-1" type="text">
              </input>
              <div id="b-item-error-1" class="item-error">Invalid</div>
              <div id="b-item-path-1" class="item-path" enabled="true">census|dwelling-address|apartment-flat-unit-number</div>
            </div>
          </div>
          <div id="b-item-enclosing-2" class="item-enclosing">
            <div class="item-number">2</div>
            <label class="item-label">Street Number</label>
            <div class="item-input">
              <input id="b-item-2" class=" item-input-text" name="item-input-2" type="text">
              </input>
              <div id="b-item-error-2" class="item-error">Invalid</div>
              <div id="b-item-path-2" class="item-path" enabled="true">census|dwelling-address|street-number</div>
            </div>
          </div>
          <div id="b-item-enclosing-3" class="item-enclosing">
            <div class="item-number">3</div>
            <label class="item-label">Street Name</label>
            <div class="item-input">
              <input id="b-item-3" class=" item-input-text" name="item-input-3" type="text">
              </input>
              <div id="b-item-error-3" class="item-error">Invalid</div>
              <div id="b-item-path-3" class="item-path" enabled="true">census|dwelling-address|street-name</div>
            </div>
          </div>
          <div id="b-item-enclosing-4" class="item-enclosing">
            <div class="item-number">4</div>
            <label class="item-label">Suburb Locality</label>
            <div class="item-input">
              <input id="b-item-4" class=" item-input-text" name="item-input-4" type="text">
              </input>
              <div id="b-item-error-4" class="item-error">Invalid</div>
              <div id="b-item-path-4" class="item-path" enabled="true">census|dwelling-address|suburb-locality</div>
            </div>
          </div>
          <div id="b-item-enclosing-5" class="item-enclosing">
            <div class="item-number">5</div>
            <label class="item-label">State</label>
            <div class="item-input">
              <select id="b-item-5" class="select">
                <option value="">Select one...</option>
                <option value="ACT">ACT</option>
                <option value="NSW">NSW</option>
                <option value="NT">NT</option>
                <option value="QLD">QLD</option>
                <option value="SA">SA</option>
                <option value="TAS">TAS</option>
                <option value="VIC">VIC</option>
                <option value="WA">WA</option>
              </select>
              <div id="b-item-error-5" class="item-error">Invalid</div>
              <div id="b-item-path-5" class="item-path" enabled="true">census|dwelling-address|state</div>
            </div>
          </div>
          <div id="b-item-enclosing-6" class="item-enclosing">
            <div class="item-number">6</div>
            <label class="item-label">Postcode<em>*</em></label>
            <div class="item-input">
              <input id="b-item-6" class=" item-input-text" name="item-input-6" type="text">
              </input>
              <div id="b-item-error-6" class="item-error">Not a valid postcode</div>
              <div id="b-item-path-6" class="item-path" enabled="true">census|dwelling-address|postcode</div>
            </div>
          </div>
          <div id="b-item-enclosing-7" class="item-enclosing">
            <div class="item-number">7</div>
            <label class="item-label">Property Building Name</label>
            <div class="item-input">
              <input id="b-item-7" class=" item-input-text" name="item-input-7" type="text">
              </input>
              <div id="b-item-error-7" class="item-error">Invalid</div>
              <div id="b-item-path-7" class="item-path" enabled="true">census|dwelling-address|property-building-name</div>
            </div>
          </div>
        </div>
      </div>
      <div class="sequence">
        <div class="sequence-label">Name of the person</div>
        <div id="b-sequence-7" class="sequence-content">
          <div id="b-item-enclosing-8" class="item-enclosing">
            <div class="item-number">8</div>
            <label class="item-label">First Name</label>
            <div class="item-input">
              <input id="b-item-8" class=" item-input-text" name="item-input-8" type="text">
              </input>
              <div id="b-item-error-8" class="item-error">Invalid</div>
              <div id="b-item-path-8" class="item-path" enabled="true">census|name|first-name</div>
            </div>
          </div>
          <div id="b-item-enclosing-9" class="item-enclosing">
            <div class="item-number">9</div>
            <label class="item-label">Last Name</label>
            <div class="item-input">
              <input id="b-item-9" class=" item-input-text" name="item-input-9" type="text">
              </input>
              <div id="b-item-error-9" class="item-error">Invalid</div>
              <div id="b-item-path-9" class="item-path" enabled="true">census|name|last-name</div>
            </div>
          </div>
        </div>
      </div>
      <div id="b-item-enclosing-10" class="item-enclosing">
        <div class="item-number">10</div>
        <label class="item-label">Is the person male or female?</label>
        <div class="item-input">
          <select id="b-item-10" class="select">
            <option value="">Select one...</option>
            <option value="Male">Male</option>
            <option value="Female">Female</option>
          </select>
          <div id="b-item-error-10" class="item-error">Invalid</div>
          <div id="b-item-path-10" class="item-path" enabled="true">census|gender</div>
        </div>
      </div>
      <div id="b-item-enclosing-10" class="choice">
        <div class="choice-label">What is the person's date of birth (or age last birthday)?</div>
        <div id="b-div-choice-item-10-1" class="div-choice-item">
          <input name="b-choice-item-10" id="b-choice-item-10-1" class="choice-item" type="radio" value="number">Date of birth</input>
        </div>
        <div id="b-div-choice-item-10-2" class="div-choice-item">
          <input name="b-choice-item-10" id="b-choice-item-10-2" class="choice-item" type="radio" value="number">Age last birthday</input>
        </div>
        <div id="b-choice-content-10-1">
          <div id="b-item-enclosing-11" class="item-enclosing">
            <div class="item-number">11</div>
            <label class="item-label"><em>*</em></label>
            <div class="item-input">
              <input id="b-item-11" class="datepickerclass  item-input-text" name="item-input-11" type="text">
              </input>
              <div id="b-item-error-11" class="item-error">Invalid</div>
              <div id="b-item-path-11" class="item-path" enabled="true">census|census|date-of-birth</div>
            </div>
          </div>
        </div>
        <div id="b-choice-content-10-2">
          <div id="b-item-enclosing-12" class="item-enclosing">
            <div class="item-number">12</div>
            <label class="item-label">
            </label>
            <div class="item-input">
              <input id="b-item-12" class=" item-input-text" name="item-input-12" type="text">
              </input>
              <div id="b-item-error-12" class="item-error">Invalid</div>
              <div id="b-item-path-12" class="item-path" enabled="true">census|census|age-last-birthday</div>
            </div>
          </div>
        </div>
      </div>
      <div id="b-item-enclosing-13" class="item-enclosing">
        <div class="item-title">What is the person's current marital status?</div>
        <div class="item-before">'Married refers to registered marriages.</div>
        <div class="item-number">13</div>
        <label class="item-label">Marital Status</label>
        <div class="item-input">
          <select id="b-item-13" class="select">
            <option value="">Select one...</option>
            <option value="Never married">Never married</option>
            <option value="Widowed">Widowed</option>
            <option value="Divorced">Divorced</option>
            <option value="Separated but not divorced">Separated but not divorced</option>
            <option value="Married">Married</option>
          </select>
          <div id="b-item-error-13" class="item-error">Invalid</div>
          <div id="b-item-path-13" class="item-path" enabled="true">census|marital-status</div>
        </div>
      </div>
      <div id="b-item-enclosing-14" class="item-enclosing">
        <div class="item-title">Is the person of Aboriginal or Torres Strait Islander origin?</div>
        <div class="item-before">For persons of both Aboriginal and Torres Strait Islander origin, select 'Both'.</div>
        <div class="item-number">14</div>
        <label class="item-label">
        </label>
        <div class="item-input">
          <select id="b-item-14" class="select">
            <option value="">Select one...</option>
            <option value="No">No</option>
            <option value="Aboriginal">Aboriginal</option>
            <option value="Torres Strait Islander">Torres Strait Islander</option>
            <option value="Both">Both</option>
          </select>
          <div id="b-item-error-14" class="item-error">Invalid</div>
          <div id="b-item-path-14" class="item-path" enabled="true">census|indigenous-origin</div>
        </div>
      </div>
      <div id="b-item-enclosing-14" class="choice">
        <div class="choice-label">Where does the person usually live?</div>
        <div id="b-div-choice-item-14-1" class="div-choice-item">
          <input name="b-choice-item-14" id="b-choice-item-14-1" class="choice-item" type="radio" value="number">Same as address of dwelling at top of form</input>
        </div>
        <div id="b-div-choice-item-14-2" class="div-choice-item">
          <input name="b-choice-item-14" id="b-choice-item-14-2" class="choice-item" type="radio" value="number">Elsewhere in Australia</input>
        </div>
        <div id="b-div-choice-item-14-3" class="div-choice-item">
          <input name="b-choice-item-14" id="b-choice-item-14-3" class="choice-item" type="radio" value="number">Other Country<em>*</em></input>
        </div>
        <div id="b-choice-content-14-1">
          <div id="b-item-enclosing-15" class="item-enclosing invisible">
            <div class="item-number">15</div>
            <label class="item-label">Same as address of dwelling at top of form<em>*</em></label>
            <div class="item-input">
              <select id="b-item-15" class="select">
                <option value="true">true</option>
              </select>
              <div id="b-item-error-15" class="item-error">Invalid</div>
              <div id="b-item-path-15" class="item-path" enabled="true">census|residential address|residential-same-as-dwelling-address</div>
            </div>
          </div>
        </div>
        <div id="b-choice-content-14-2">
          <div class="sequence">
            <div class="sequence-label">
            </div>
            <div id="b-sequence-15" class="sequence-content">
              <div id="b-item-enclosing-16" class="item-enclosing">
                <div class="item-number">16</div>
                <label class="item-label">Apartment/Flat/Unit number</label>
                <div class="item-input">
                  <input id="b-item-16" class=" item-input-text" name="item-input-16" type="text">
                  </input>
                  <div id="b-item-error-16" class="item-error">Invalid</div>
                  <div id="b-item-path-16" class="item-path" enabled="true">census|residential address|residential-address|apartment-flat-unit-number</div>
                </div>
              </div>
              <div id="b-item-enclosing-17" class="item-enclosing">
                <div class="item-number">17</div>
                <label class="item-label">Street Number</label>
                <div class="item-input">
                  <input id="b-item-17" class=" item-input-text" name="item-input-17" type="text">
                  </input>
                  <div id="b-item-error-17" class="item-error">Invalid</div>
                  <div id="b-item-path-17" class="item-path" enabled="true">census|residential address|residential-address|street-number</div>
                </div>
              </div>
              <div id="b-item-enclosing-18" class="item-enclosing">
                <div class="item-number">18</div>
                <label class="item-label">Street Name</label>
                <div class="item-input">
                  <input id="b-item-18" class=" item-input-text" name="item-input-18" type="text">
                  </input>
                  <div id="b-item-error-18" class="item-error">Invalid</div>
                  <div id="b-item-path-18" class="item-path" enabled="true">census|residential address|residential-address|street-name</div>
                </div>
              </div>
              <div id="b-item-enclosing-19" class="item-enclosing">
                <div class="item-number">19</div>
                <label class="item-label">Suburb Locality</label>
                <div class="item-input">
                  <input id="b-item-19" class=" item-input-text" name="item-input-19" type="text">
                  </input>
                  <div id="b-item-error-19" class="item-error">Invalid</div>
                  <div id="b-item-path-19" class="item-path" enabled="true">census|residential address|residential-address|suburb-locality</div>
                </div>
              </div>
              <div id="b-item-enclosing-20" class="item-enclosing">
                <div class="item-number">20</div>
                <label class="item-label">State</label>
                <div class="item-input">
                  <select id="b-item-20" class="select">
                    <option value="">Select one...</option>
                    <option value="ACT">ACT</option>
                    <option value="NSW">NSW</option>
                    <option value="NT">NT</option>
                    <option value="QLD">QLD</option>
                    <option value="SA">SA</option>
                    <option value="TAS">TAS</option>
                    <option value="VIC">VIC</option>
                    <option value="WA">WA</option>
                  </select>
                  <div id="b-item-error-20" class="item-error">Invalid</div>
                  <div id="b-item-path-20" class="item-path" enabled="true">census|residential address|residential-address|state</div>
                </div>
              </div>
              <div id="b-item-enclosing-21" class="item-enclosing">
                <div class="item-number">21</div>
                <label class="item-label">Postcode<em>*</em></label>
                <div class="item-input">
                  <input id="b-item-21" class=" item-input-text" name="item-input-21" type="text">
                  </input>
                  <div id="b-item-error-21" class="item-error">Not a valid postcode</div>
                  <div id="b-item-path-21" class="item-path" enabled="true">census|residential address|residential-address|postcode</div>
                </div>
              </div>
              <div id="b-item-enclosing-22" class="item-enclosing">
                <div class="item-number">22</div>
                <label class="item-label">Property Building Name</label>
                <div class="item-input">
                  <input id="b-item-22" class=" item-input-text" name="item-input-22" type="text">
                  </input>
                  <div id="b-item-error-22" class="item-error">Invalid</div>
                  <div id="b-item-path-22" class="item-path" enabled="true">census|residential address|residential-address|property-building-name</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div id="b-choice-content-14-3">
          <div id="b-item-enclosing-23" class="item-enclosing invisible">
            <div class="item-number">23</div>
            <label class="item-label">Other Country<em>*</em></label>
            <div class="item-input">
              <select id="b-item-23" class="select">
                <option value="true">true</option>
              </select>
              <div id="b-item-error-23" class="item-error">Invalid</div>
              <div id="b-item-path-23" class="item-path" enabled="true">census|residential address|other-country</div>
            </div>
          </div>
        </div>
      </div>
      <div id="b-item-enclosing-23" class="choice">
        <div class="choice-label">Where did the person usually live one year ago (at 9 August 2010)?</div>
        <div id="b-div-choice-item-23-1" class="div-choice-item">
          <input name="b-choice-item-23" id="b-choice-item-23-1" class="choice-item" type="radio" value="number">Same as address in last question</input>
        </div>
        <div id="b-div-choice-item-23-2" class="div-choice-item">
          <input name="b-choice-item-23" id="b-choice-item-23-2" class="choice-item" type="radio" value="number">Elsewhere in Australia</input>
        </div>
        <div id="b-div-choice-item-23-3" class="div-choice-item">
          <input name="b-choice-item-23" id="b-choice-item-23-3" class="choice-item" type="radio" value="number">Other Country<em>*</em></input>
        </div>
        <div id="b-choice-content-23-1">
          <div id="b-item-enclosing-24" class="item-enclosing invisible">
            <div class="item-number">24</div>
            <label class="item-label">Same as address in last question<em>*</em></label>
            <div class="item-input">
              <select id="b-item-24" class="select">
                <option value="true">true</option>
              </select>
              <div id="b-item-error-24" class="item-error">Invalid</div>
              <div id="b-item-path-24" class="item-path" enabled="true">census|residential address-one-year-ago|residential-same-as-current</div>
            </div>
          </div>
        </div>
        <div id="b-choice-content-23-2">
          <div class="sequence">
            <div class="sequence-label">
            </div>
            <div id="b-sequence-24" class="sequence-content">
              <div id="b-item-enclosing-25" class="item-enclosing">
                <div class="item-number">25</div>
                <label class="item-label">Apartment/Flat/Unit number</label>
                <div class="item-input">
                  <input id="b-item-25" class=" item-input-text" name="item-input-25" type="text">
                  </input>
                  <div id="b-item-error-25" class="item-error">Invalid</div>
                  <div id="b-item-path-25" class="item-path" enabled="true">census|residential address-one-year-ago|residential-address|apartment-flat-unit-number</div>
                </div>
              </div>
              <div id="b-item-enclosing-26" class="item-enclosing">
                <div class="item-number">26</div>
                <label class="item-label">Street Number</label>
                <div class="item-input">
                  <input id="b-item-26" class=" item-input-text" name="item-input-26" type="text">
                  </input>
                  <div id="b-item-error-26" class="item-error">Invalid</div>
                  <div id="b-item-path-26" class="item-path" enabled="true">census|residential address-one-year-ago|residential-address|street-number</div>
                </div>
              </div>
              <div id="b-item-enclosing-27" class="item-enclosing">
                <div class="item-number">27</div>
                <label class="item-label">Street Name</label>
                <div class="item-input">
                  <input id="b-item-27" class=" item-input-text" name="item-input-27" type="text">
                  </input>
                  <div id="b-item-error-27" class="item-error">Invalid</div>
                  <div id="b-item-path-27" class="item-path" enabled="true">census|residential address-one-year-ago|residential-address|street-name</div>
                </div>
              </div>
              <div id="b-item-enclosing-28" class="item-enclosing">
                <div class="item-number">28</div>
                <label class="item-label">Suburb Locality</label>
                <div class="item-input">
                  <input id="b-item-28" class=" item-input-text" name="item-input-28" type="text">
                  </input>
                  <div id="b-item-error-28" class="item-error">Invalid</div>
                  <div id="b-item-path-28" class="item-path" enabled="true">census|residential address-one-year-ago|residential-address|suburb-locality</div>
                </div>
              </div>
              <div id="b-item-enclosing-29" class="item-enclosing">
                <div class="item-number">29</div>
                <label class="item-label">State</label>
                <div class="item-input">
                  <select id="b-item-29" class="select">
                    <option value="">Select one...</option>
                    <option value="ACT">ACT</option>
                    <option value="NSW">NSW</option>
                    <option value="NT">NT</option>
                    <option value="QLD">QLD</option>
                    <option value="SA">SA</option>
                    <option value="TAS">TAS</option>
                    <option value="VIC">VIC</option>
                    <option value="WA">WA</option>
                  </select>
                  <div id="b-item-error-29" class="item-error">Invalid</div>
                  <div id="b-item-path-29" class="item-path" enabled="true">census|residential address-one-year-ago|residential-address|state</div>
                </div>
              </div>
              <div id="b-item-enclosing-30" class="item-enclosing">
                <div class="item-number">30</div>
                <label class="item-label">Postcode<em>*</em></label>
                <div class="item-input">
                  <input id="b-item-30" class=" item-input-text" name="item-input-30" type="text">
                  </input>
                  <div id="b-item-error-30" class="item-error">Not a valid postcode</div>
                  <div id="b-item-path-30" class="item-path" enabled="true">census|residential address-one-year-ago|residential-address|postcode</div>
                </div>
              </div>
              <div id="b-item-enclosing-31" class="item-enclosing">
                <div class="item-number">31</div>
                <label class="item-label">Property Building Name</label>
                <div class="item-input">
                  <input id="b-item-31" class=" item-input-text" name="item-input-31" type="text">
                  </input>
                  <div id="b-item-error-31" class="item-error">Invalid</div>
                  <div id="b-item-path-31" class="item-path" enabled="true">census|residential address-one-year-ago|residential-address|property-building-name</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div id="b-choice-content-23-3">
          <div id="b-item-enclosing-32" class="item-enclosing invisible">
            <div class="item-number">32</div>
            <label class="item-label">Other Country<em>*</em></label>
            <div class="item-input">
              <select id="b-item-32" class="select">
                <option value="true">true</option>
              </select>
              <div id="b-item-error-32" class="item-error">Invalid</div>
              <div id="b-item-path-32" class="item-path" enabled="true">census|residential address-one-year-ago|other-country</div>
            </div>
          </div>
        </div>
      </div>
      <div id="b-item-enclosing-32" class="choice">
        <div class="choice-label">Where did the person usually live five years ago (at 9 August 2006)?</div>
        <div id="b-div-choice-item-32-1" class="div-choice-item">
          <input name="b-choice-item-32" id="b-choice-item-32-1" class="choice-item" type="radio" value="number">Same as address in last question</input>
        </div>
        <div id="b-div-choice-item-32-2" class="div-choice-item">
          <input name="b-choice-item-32" id="b-choice-item-32-2" class="choice-item" type="radio" value="number">Elsewhere in Australia</input>
        </div>
        <div id="b-div-choice-item-32-3" class="div-choice-item">
          <input name="b-choice-item-32" id="b-choice-item-32-3" class="choice-item" type="radio" value="number">Other Country<em>*</em></input>
        </div>
        <div id="b-choice-content-32-1">
          <div id="b-item-enclosing-33" class="item-enclosing invisible">
            <div class="item-number">33</div>
            <label class="item-label">Same as address in last question<em>*</em></label>
            <div class="item-input">
              <select id="b-item-33" class="select">
                <option value="true">true</option>
              </select>
              <div id="b-item-error-33" class="item-error">Invalid</div>
              <div id="b-item-path-33" class="item-path" enabled="true">census|residential address-five-years-ago|residential-same-as-current</div>
            </div>
          </div>
        </div>
        <div id="b-choice-content-32-2">
          <div class="sequence">
            <div class="sequence-label">
            </div>
            <div id="b-sequence-33" class="sequence-content">
              <div id="b-item-enclosing-34" class="item-enclosing">
                <div class="item-number">34</div>
                <label class="item-label">Apartment/Flat/Unit number</label>
                <div class="item-input">
                  <input id="b-item-34" class=" item-input-text" name="item-input-34" type="text">
                  </input>
                  <div id="b-item-error-34" class="item-error">Invalid</div>
                  <div id="b-item-path-34" class="item-path" enabled="true">census|residential address-five-years-ago|residential-address|apartment-flat-unit-number</div>
                </div>
              </div>
              <div id="b-item-enclosing-35" class="item-enclosing">
                <div class="item-number">35</div>
                <label class="item-label">Street Number</label>
                <div class="item-input">
                  <input id="b-item-35" class=" item-input-text" name="item-input-35" type="text">
                  </input>
                  <div id="b-item-error-35" class="item-error">Invalid</div>
                  <div id="b-item-path-35" class="item-path" enabled="true">census|residential address-five-years-ago|residential-address|street-number</div>
                </div>
              </div>
              <div id="b-item-enclosing-36" class="item-enclosing">
                <div class="item-number">36</div>
                <label class="item-label">Street Name</label>
                <div class="item-input">
                  <input id="b-item-36" class=" item-input-text" name="item-input-36" type="text">
                  </input>
                  <div id="b-item-error-36" class="item-error">Invalid</div>
                  <div id="b-item-path-36" class="item-path" enabled="true">census|residential address-five-years-ago|residential-address|street-name</div>
                </div>
              </div>
              <div id="b-item-enclosing-37" class="item-enclosing">
                <div class="item-number">37</div>
                <label class="item-label">Suburb Locality</label>
                <div class="item-input">
                  <input id="b-item-37" class=" item-input-text" name="item-input-37" type="text">
                  </input>
                  <div id="b-item-error-37" class="item-error">Invalid</div>
                  <div id="b-item-path-37" class="item-path" enabled="true">census|residential address-five-years-ago|residential-address|suburb-locality</div>
                </div>
              </div>
              <div id="b-item-enclosing-38" class="item-enclosing">
                <div class="item-number">38</div>
                <label class="item-label">State</label>
                <div class="item-input">
                  <select id="b-item-38" class="select">
                    <option value="">Select one...</option>
                    <option value="ACT">ACT</option>
                    <option value="NSW">NSW</option>
                    <option value="NT">NT</option>
                    <option value="QLD">QLD</option>
                    <option value="SA">SA</option>
                    <option value="TAS">TAS</option>
                    <option value="VIC">VIC</option>
                    <option value="WA">WA</option>
                  </select>
                  <div id="b-item-error-38" class="item-error">Invalid</div>
                  <div id="b-item-path-38" class="item-path" enabled="true">census|residential address-five-years-ago|residential-address|state</div>
                </div>
              </div>
              <div id="b-item-enclosing-39" class="item-enclosing">
                <div class="item-number">39</div>
                <label class="item-label">Postcode<em>*</em></label>
                <div class="item-input">
                  <input id="b-item-39" class=" item-input-text" name="item-input-39" type="text">
                  </input>
                  <div id="b-item-error-39" class="item-error">Not a valid postcode</div>
                  <div id="b-item-path-39" class="item-path" enabled="true">census|residential address-five-years-ago|residential-address|postcode</div>
                </div>
              </div>
              <div id="b-item-enclosing-40" class="item-enclosing">
                <div class="item-number">40</div>
                <label class="item-label">Property Building Name</label>
                <div class="item-input">
                  <input id="b-item-40" class=" item-input-text" name="item-input-40" type="text">
                  </input>
                  <div id="b-item-error-40" class="item-error">Invalid</div>
                  <div id="b-item-path-40" class="item-path" enabled="true">census|residential address-five-years-ago|residential-address|property-building-name</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div id="b-choice-content-32-3">
          <div id="b-item-enclosing-41" class="item-enclosing invisible">
            <div class="item-number">41</div>
            <label class="item-label">Other Country<em>*</em></label>
            <div class="item-input">
              <select id="b-item-41" class="select">
                <option value="true">true</option>
              </select>
              <div id="b-item-error-41" class="item-error">Invalid</div>
              <div id="b-item-path-41" class="item-path" enabled="true">census|residential address-five-years-ago|other-country</div>
            </div>
          </div>
        </div>
      </div>
      <div id="b-item-enclosing-42" class="item-enclosing">
        <div class="item-title">Citizenship</div>
        <div class="item-number">42</div>
        <label class="item-label">The person is an Australian citizen<em>*</em></label>
        <div class="item-input">
          <input id="b-item-42" class=" item-input-text" name="item-input-42" type="checkbox">
          </input>
          <div id="b-item-error-42" class="item-error">Invalid</div>
          <div id="b-item-path-42" class="item-path" enabled="true">census|citizen</div>
        </div>
      </div>
      <div id="b-item-enclosing-42" class="choice">
        <div class="choice-label">In which country was the person born?</div>
        <div id="b-div-choice-item-42-1" class="div-choice-item">
          <input name="b-choice-item-42" id="b-choice-item-42-1" class="choice-item" type="radio" value="number">Australia<em>*</em></input>
        </div>
        <div id="b-div-choice-item-42-2" class="div-choice-item">
          <input name="b-choice-item-42" id="b-choice-item-42-2" class="choice-item" type="radio" value="number">Other<em>*</em></input>
        </div>
        <div id="b-choice-content-42-1">
          <div id="b-item-enclosing-43" class="item-enclosing invisible">
            <div class="item-number">43</div>
            <label class="item-label">Australia<em>*</em></label>
            <div class="item-input">
              <select id="b-item-43" class="select">
                <option value="true">true</option>
              </select>
              <div id="b-item-error-43" class="item-error">Invalid</div>
              <div id="b-item-path-43" class="item-path" enabled="true">census|country-of-birth|australia</div>
            </div>
          </div>
        </div>
        <div id="b-choice-content-42-2">
          <div class="sequence">
            <div class="sequence-label">
            </div>
            <div id="b-sequence-43" class="sequence-content">
              <div id="b-item-enclosing-44" class="item-enclosing">
                <div class="item-number">44</div>
                <label class="item-label">Country</label>
                <div class="item-input">
                  <select id="b-item-44" class="select">
                    <option value="">Select one...</option>
                    <option value="England">England</option>
                    <option value="New Zealand">New Zealand</option>
                    <option value="Italy">Italy</option>
                    <option value="Vietnam">Vietnam</option>
                    <option value="India">India</option>
                    <option value="Scotland">Scotland</option>
                    <option value="Other">Other</option>
                  </select>
                  <div id="b-item-error-44" class="item-error">Invalid</div>
                  <div id="b-item-path-44" class="item-path" enabled="true">census|country-of-birth|other|country</div>
                </div>
              </div>
              <div id="b-item-enclosing-45" class="item-enclosing invisible">
                <div class="item-number">45</div>
                <label class="item-label">Country</label>
                <div class="item-input">
                  <input id="b-item-45" class=" item-input-text" name="item-input-45" type="text">
                  </input>
                  <div id="b-item-error-45" class="item-error">Invalid</div>
                  <div id="b-item-path-45" class="item-path" enabled="true">census|country-of-birth|other|other-country</div>
                </div>
              </div>
              <div id="b-item-enclosing-46" class="item-enclosing">
                <div class="item-number">46</div>
                <label class="item-label">Year Of Arrival<em>*</em></label>
                <div class="item-input">
                  <input id="b-item-46" class=" item-input-text" name="item-input-46" type="text">
                  </input>
                  <div id="b-item-error-46" class="item-error">Invalid</div>
                  <div id="b-item-path-46" class="item-path" enabled="true">census|country-of-birth|other|year-of-arrival</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div id="b-item-enclosing-47" class="item-enclosing">
        <div class="item-number">47</div>
        <label class="item-label">Was the person's father born in Australia or overseas?</label>
        <div class="item-input">
          <select id="b-item-47" class="select">
            <option value="">Select one...</option>
            <option value="Australia">Australia</option>
            <option value="Overseas">Overseas</option>
          </select>
          <div id="b-item-error-47" class="item-error">Invalid</div>
          <div id="b-item-path-47" class="item-path" enabled="true">census|father-place-of-birth</div>
        </div>
      </div>
      <div id="b-item-enclosing-48" class="item-enclosing">
        <div class="item-number">48</div>
        <label class="item-label">Was the person's mother born in Australia or overseas?</label>
        <div class="item-input">
          <select id="b-item-48" class="select">
            <option value="">Select one...</option>
            <option value="Australia">Australia</option>
            <option value="Overseas">Overseas</option>
          </select>
          <div id="b-item-error-48" class="item-error">Invalid</div>
          <div id="b-item-path-48" class="item-path" enabled="true">census|mother-place-of-birth</div>
        </div>
      </div>
      <div class="sequence">
        <div class="sequence-label">Does the person speak a language other than English at home?</div>
        <div id="b-sequence-48" class="sequence-content">
          <div id="b-item-enclosing-49" class="item-enclosing">
            <div class="item-before">If more than one language spoken other than English select the one that is spoken most often</div>
            <div class="item-number">49</div>
            <label class="item-label">Language</label>
            <div class="item-input">
              <select id="b-item-49" class="select">
                <option value="">Select one...</option>
                <option value="English only">English only</option>
                <option value="Italian">Italian</option>
                <option value="Greek">Greek</option>
                <option value="Cantonese">Cantonese</option>
                <option value="Arabic">Arabic</option>
                <option value="Mandarin">Mandarin</option>
                <option value="Vietnamese">Vietnamese</option>
                <option value="Other">Other</option>
              </select>
              <div id="b-item-error-49" class="item-error">Invalid</div>
              <div id="b-item-path-49" class="item-path" enabled="true">census|language-at-home|language-at-home</div>
            </div>
          </div>
          <div id="b-item-enclosing-50" class="item-enclosing invisible">
            <div class="item-number">50</div>
            <label class="item-label">Other language at home</label>
            <div class="item-input">
              <input id="b-item-50" class=" item-input-text" name="item-input-50" type="text">
              </input>
              <div id="b-item-error-50" class="item-error">Invalid</div>
              <div id="b-item-path-50" class="item-path" enabled="true">census|language-at-home|language-at-home-other</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!--<input id="submit" class="submit" type="submit"></input>-->
  <div id="pre-submit" class="pre-submit">Submit</div>
  <div id="submit-comments"></div>
</form>
</div>
</body>
</html>